<?php
session_start();
if($_SESSION['fl']!=1)
{
	header("Location:admin.php");
}



?><?php
$con=mysql_connect('localhost','root','');
if(!$con)
{
  die('could not connect:'.mysql_error());
  }
  mysql_select_db("ETrawelMart",$con);

if(isset($_GET["id"]))
{

// --------- here code to connect to mysql and select database -----------
$id=$_GET["id"];
$query= mysql_query("DELETE FROM feedback where feedbackid=$id")or die(mysql_error());

}
 
  mysql_close($con);
?>
<script language="javascript"> 
alert ("Feedback deleted");
		 window.location.href='adminfeedback.php'; </script> 